<?php

namespace App\Models\Bi;


use Illuminate\Database\Eloquent\Model;

class Bill extends Model
{

    /**
     * The table associated with the model.
     */
    protected $table = 'bills';

    protected $connection = "bi";

    public $timestamps = true;

    protected $dateFormat = 'U';

    const CREATED_AT = 'created_at';

    const UPDATED_AT = 'updated_at';

    /**
     * The attributes that are mass assignable.
     */
    protected $fillable = ['id', 'agent1_id', 'agent2_id', 'agent3_id', 'agent4_id', 'agent_id', 'store_id', 'oem_id',
        "pay_type",
        'ways_source',
        'total_fee', 'receipt_fee', 'fee_amount', 'total_num', 'refund_num', 'refund_fee', 'oem_profit', 'agent1_profit', 'agent2_profit', 'agent3_profit', 'agent4_profit', 'day', 'created_at', 'updated_at',
        "oem_fee",
        "agent1_fee",
        "agent2_fee",
        "agent3_fee",
        "agent4_fee",
        "fee_amount",
        "company",
        "ways_type",
        "receive_model"
    ];
}